package com.yami.shop.dto.group;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChannelDTO implements Serializable {
    
    @Schema(description = "频道ID")
    private String channelId;

    @NotNull(message = "超级群组ID不能为空")
    @Schema(description = "超级群组 ID")
    private Long groupId;

    @NotNull(message = "频道类型不能为空")
    @Schema(description = "类型 0:公有频道 1：私有频道")
    private Integer type;

    @NotEmpty(message = "频道名称不能为空")
    @Schema(description = "频道名称")
    private String channelName;
    
    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "频道用户id")
    private List<String> userIds;
}
